Merged
Conversation
Implements autocomplete functionality that provides intelligent suggestions as you type SQL queries, triggered automatically or via Ctrl+Space. Features: - Context-aware suggestions from connected database tables/columns - SQL keywords, types, and 53+ PostgreSQL built-in functions - Popup positioned relative to cursor with overflow handling - Keyboard navigation: Up/Down to select, Tab/Enter to accept, Esc to dismiss - Kind labels (KW/TY/TBL/COL/FN) for suggestion categorization - Auto-triggers on typing, dismisses on empty prefix - Limited to 10 suggestions for clean display Closes #11 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Resolve merge conflicts with origin/main (explain viewer, table inspector, export features). Fix table autocomplete to suggest schema.table format (e.g. saga.user, public.user) instead of bare table names, so tables with the same name across different schemas appear as distinct options. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Changes
src/ui/app.rs: AddedAutocompleteSuggestion,SuggestionKind, andAutocompleteStatetypes; addedSQL_FUNCTIONSconstant with 53 PostgreSQL functions; modified editor input handling to trigger/navigate autocomplete; addedupdate_autocomplete()andaccept_autocomplete()methodssrc/ui/components.rs: Addeddraw_autocomplete()popup renderer with kind labels and selection highlighting; updated help overlay with Ctrl+Space shortcutHow It Works
update_autocomplete()extracts the current word prefixTest plan
cargo checkpassescargo clippypasses with no warningscargo fmtproduces no changesCloses #11
🤖 Generated with Claude Code